#include "mainwindow.h"
#include "./ui_mainwindow.h"

#include <QMediaDevices>
#include <QAudioOutput>
#include <QAudioInput>
#include <QAudioDevice>
#include <QDebug>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    foreach(const auto& deviceInfo , QMediaDevices::audioInputs())
    {
        qDebug()<< deviceInfo.description();
    }

    foreach(const auto& deviceInfo , QMediaDevices::audioOutputs())
    {
        qDebug()<< deviceInfo.description();
    }
}

MainWindow::~MainWindow()
{
    delete ui;
}
